package routers
import (
	middlewares "MBTI-backend/middleWare"
	_ "MBTI-backend/models"
	"github.com/gin-gonic/gin"
)
func whiteListRouter(r *gin.RouterGroup) {
	r = r.Group("/MBTI-backend")
	TestMBTIRouter(r)
	StudentRouter(r)
}

func InitRouter() *gin.Engine {
	router := gin.New()
	router.Use(gin.Logger())
	router.Use(gin.Recovery())
	router.Use(middlewares.Cors())
	routerGroup := router.Group("")
	whiteListRouter(routerGroup)
	return router
}
